//
//  NSObject+QLTools.m
//  QLCustomCamera_Example
//
//  Created by 李强 on 2020/9/1.
//  Copyright © 2020 李强LiQ. All rights reserved.
//

#import "NSObject+QLTools.h"

@implementation NSObject (QLTools)

+(NSString *)getBundlePlistWithName:(NSString *)plistName className:(NSString *)className{
    NSString *bundlePath = [[NSBundle bundleForClass:NSClassFromString(className)].resourcePath
                            stringByAppendingPathComponent:@"/QLCustomCamera.bundle"];
    NSBundle *resource_bundle = [NSBundle bundleWithPath:bundlePath];
    NSString *path = [resource_bundle pathForResource:plistName ofType:@"plist"];
    return path;
}

+(NSString *)getBundleACVWithName:(NSString *)acvName className:(NSString *)className{
    NSString *bundlePath = [[NSBundle bundleForClass:NSClassFromString(className)].resourcePath
                            stringByAppendingPathComponent:@"/QLCustomCamera.bundle"];
    NSBundle *resource_bundle = [NSBundle bundleWithPath:bundlePath];
    NSString *path = [resource_bundle pathForResource:acvName ofType:@"acv"];
    return path;
}

@end
